﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity.Car_Rental;

namespace Data.Car_Rental
{
    public interface IAreaRepository : IBackgroundRepository<Area>
    {
        /// <summary>
        /// 根据区域名称和长度得到子区域列表
        /// </summary>
        /// <param name="name"></param>
        /// <param name="length"></param>
        /// <returns></returns>
        List<Area> GetChildrenAddressByName(string name, int length);
        /// <summary>
        /// 根据区域ＩＤ得到子区域列表
        /// </summary>
        /// <param name="codeid"></param>
        /// <returns></returns>
        List<Area> GetChildrenAddressByCodeID(int codeid);
        /// <summary>
        /// 根据名称和长度得到区域
        /// </summary>
        /// <param name="name"></param>
        /// <param name="length"></param>
        /// <returns></returns>
        Area GetAddressByName(string name, int length);
        /// <summary>
        /// 根据ＩＤ得到区域
        /// </summary>
        /// <param name="codeid"></param>
        /// <returns></returns>
        Area GetAddressByCodeID(int codeid);
    }
}
